package com.xinqi.modules.prepare.prepare.convert;

import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.prepare.prepare.domain.PrepareMemberEntity;
import com.xinqi.modules.prepare.prepare.dto.req.PrepareMemberCreateDTO;
import com.xinqi.modules.prepare.prepare.dto.req.PrepareMemberUpdateDTO;
import com.xinqi.modules.prepare.prepare.dto.rsp.PrepareMemberResultDTO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

/**
 * 备课区成员转换
 *
 * @author: system
 * @date: 2023/03/19
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class PrepareMemberConvert {
    public abstract PrepareMemberEntity create(PrepareMemberCreateDTO s);

    public abstract PrepareMemberEntity update(PrepareMemberUpdateDTO s, @MappingTarget PrepareMemberEntity t);

    public abstract PrepareMemberEntity update(PrepareMemberUpdateDTO s);

    public abstract PrepareMemberResultDTO convert(PrepareMemberEntity s);
}
